package com.common.operationLog.pojo.res;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 操作日志响应vo
 */
@Data
public class OperationLogResDTO {

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "操作模块code")
    private String operationModuleCode;

    @Schema(description = "操作模块名称")
    private String operationModuleName;

    @Schema(description = "操作类型code")
    private String operationTypeCode;

    @Schema(description = "操作类型名称")
    private String operationTypeName;

    @Schema(description = "业务id")
    private Long bizId;

    @Schema(description = "业务code")
    private String bizCode;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "请求参数")
    private String requestParams;

    @Schema(description = "变更前内容")
    private String beforeContent;

    @Schema(description = "变更后内容")
    private String afterContent;

    @Schema(description = "变更内容")
    private List<String> changeContentList;

    @Schema(description = "变更前附件")
    private String beforeFile;

    @Schema(description = "变更后附件")
    private String afterFile;

    @Schema(description = "是否软删除 0:未删除 1:删除")
    @TableLogic
    private Byte isDeleted;

    @Schema(description = "操作人")
    private Long operationBy;

    @Schema(description = "操作人")
    private String operationByName;

    @Schema(description = "操作时间")
    private LocalDateTime operationTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

}
